package com.hjb.result;

/**
 */
public class RetModel<T> {

	public int code;

	private String msg;

	private T data;

	public RetModel<T> setCode(RetCode resultCode) {
		this.code = resultCode.code;
		return this;
	}

	public int getCode() {
		return code;
	}

	public RetModel<T> setCode(int code) {
		this.code = code;
		return this;
	}

	public String getMsg() {
		return msg;
	}

	public RetModel<T> setMsg(String msg) {
		this.msg = msg;
		return this;
	}

	public T getData() {
		return data;
	}

	public RetModel<T> setData(T data) {
		this.data = data;
		return this;
	}
}
